/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package picasaphotomanager;

import configuration.ConfigurationManager;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
import picasaphotomanager.JFrames.MainJFrame;
import platforms.MacSupport;
import platforms.PlatformSupport;
import platforms.PlatformSupport.PLATFORM;

/**
 *
 * @author zalem1
 */
public class PicasaPhotoManager {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        if (PlatformSupport.getPlatformName() == PLATFORM.MAC)
        {
            System.setProperty("com.apple.mrj.application.apple.menu.about.name", "Picasa Sync");
            MacSupport.setActive(true);
        }



        ConfigurationManager.LoadConfiguration();
        
        try {
                // Set System L&F
            UIManager.setLookAndFeel(
                UIManager.getSystemLookAndFeelClassName());
        } 
        catch (UnsupportedLookAndFeelException e) {
           // handle exception
        }
        catch (ClassNotFoundException e) {
           // handle exception
        }
        catch (InstantiationException e) {
           // handle exception
        }
        catch (IllegalAccessException e) {
           // handle exception
        }
       

        MainJFrame mainWindow = new MainJFrame();
        mainWindow.setVisible(true);
    }
}
